// [data-loader] {
//     display: inline-block;
//     margin: 8px;
// }

[data-loader='circle'] {
    width: 25px;
    height: 25px;
    animation: loadingCircle infinite .75s linear;
    border: 2px solid #888;
    border-top-color: transparent;
    border-radius: 100%;
}

[data-loader='bounce'] {
    min-width: 60px;
    min-height: 30px;
    text-align: center;
    display: -moz-box;
    -moz-box-pack: center;
    -moz-box-align: center;
    /* Safari、Opera 以及 Chrome */
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    -o-box-pack: center;
    -o-box-align: center;

    >div {
        min-height: 14px;
        min-width: 14px;
        background-color: $theme_color;
        border-radius: 100%;
        display: inline-block;
        margin: 0 8px;
        animation: bouncedelay 1.4s infinite ease-in-out;
        /* 防止动画第一帧开始闪烁*/
        animation-fill-mode: both;
    }

    .bounce1 {
        animation-delay: -0.32s;
    }

    .bounce2 {
        animation-delay: -0.16s;
    }

    .bounce4 {
        animation-delay: 0.16s;
    }
}

.loading-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .5);
    top: 0;
    left: 0;
    text-align: center;
    z-index: 19;
}

[data-loader='circle-side'] {
    position: relative;
    width: 25px;
    height: 25px;
    animation: loadingCircle infinite .75s linear;
    border: 2px solid #888;
    border-top-color: rgba(0, 0, 0, .2);
    border-right-color: rgba(0, 0, 0, .2);
    border-bottom-color: rgba(0, 0, 0, .2);
    border-radius: 100%;
}

@keyframes loadingCircle {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

[loader-inline='circle'] {
    position: relative;
    transition: background-color .3s;
    pointer-events: none;

    &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba($color: #fff, $alpha: .5);
        z-index: 9;
    }

    &:after {
        content: ''; // display: inline-block;
        position: absolute;
        width: 20px;
        height: 20px;
        animation: loadingCircle infinite .75s linear;
        border: 2px solid #888;
        border-top-color: transparent;
        border-radius: 100%;
        z-index: 10;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }
}

.table-loading {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .5);
    top: 0;
    left: 0;
    text-align: center;
    z-index: 19;
}

@keyframes bouncedelay {

    0%,
    80%,
    100% {
        transform: scale(0.0);
    }

    40% {
        transform: scale(1.0);
    }
}
